<?php /* Template Name: Contact */ ?>

<?php get_header(); ?>

<div class="cols">
    <div class="col_2-3 cont_holder">

        <?php if( have_posts() ): while(have_posts()): the_post(); ?>

            <?php the_content(); ?>
            
            <?php
            $data = get_post_meta( $post->ID, 'contact_options', true );
            
            if( !empty($data['html_map']) ):
            ?>
            
                <?php echo $data['html_map']; ?>
            
            <?php endif; ?>
            
			<h1><?php echo dt_first_letter_filter( __( 'Contact form', LANGUAGE_ZONE ) ); ?></h1>
            
			<form id="order_form" class="uniform contact_us ajaxing" method="post" name="order_form" action="<?php echo $_SERVER['PHP_SELF']; ?>">
				<input type="hidden" name="p_id" value="<?php the_ID(); ?>" />
				<input type="hidden" name="send_f" value="send_f" />
				<input type="hidden" name="send_contacts" value="1" />
				
                <div class="i_h">
                    <div class="l">
						<input id="form_name" name="f_name" type="text" placeholder="<?php esc_attr_e( '*Your name', LANGUAGE_ZONE ); ?>" class="validate[required]" value="" />
					</div>
                </div>
                
                <div class="i_h">
					<div class="r">	
                        <input id="form_email" name="f_email" type="text" placeholder="<?php esc_attr_e( '*E-mail', LANGUAGE_ZONE ); ?>" class="validate[required, custom[email]]" value="" />
					</div>
                </div>
                
                <div class="i_h">
                    <div class="l">
						<input id="form_phone" name="f_website" type="text" placeholder="<?php esc_attr_e( 'Website', LANGUAGE_ZONE ); ?>" class="validate[optional]" value="" />
					</div>
				</div>
                
				<div class="i_h">
                    <div class="r">
						<input id="form_phone" name="f_phone" type="text" placeholder="<?php esc_attr_e( 'Telephone', LANGUAGE_ZONE ); ?>" class="validate[optional]" value="" />
					</div>
				</div>
                
				<div class="t_h">
					<textarea type="textarea" id="form_message" name="f_comment" placeholder="<?php esc_attr_e( '*Your message', LANGUAGE_ZONE ); ?>" class="validate[required]"></textarea>
				</div>
                
				<div class="buttons">
					<a href="#" class="big go_button go_submit the_button">
						<span class="but-r"><?php _e( 'Submit', LANGUAGE_ZONE ); ?><i></i></span>
					</a>
					<a href="#" class="do_clear">
						<?php _e( 'Clear form', LANGUAGE_ZONE ); ?>
					</a>
				</div>
                
			</form>

        <?php endwhile; endif; ?>
    </div>
    
    <?php dt_get_where_filter_params( 'contact' ); ?>
    <?php get_sidebar(); ?>
    
</div>

<?php get_footer(); ?>